-- GENERATED SPELL FOR [Hulfnar Stonetotem] --


function spell0_10599(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(16740,pUnit)
pUnit:RegisterEvent('Sorts_10599', 566, 1)
end

function Sorts_10599(pUnit, Event)
local choix_sorts_10599 = math.random(0, 0)
if choix_sorts_10599 == 0 then
pUnit:RegisterEvent('spell0_10599', 1, 1)
end
end

function mob10599_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10599', math.random(1500, 3000), 1)
end

function mob10599_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10599_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10599_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10599, 1, 'mob10599_Action')
RegisterUnitEvent(10599, 2, 'mob10599_Leave')
RegisterUnitEvent(10599, 3, 'mob10599_Kill')
RegisterUnitEvent(10599, 4, 'mob10599_Die')
